import { createRouter, createWebHistory } from 'vue-router';
import Home from '../page/homePage.vue';
import ChangeCardSuccess from '../page/changeCardSuccess.vue';

const routerHistory = createWebHistory();

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/success',
    name: 'Success',
    component: ChangeCardSuccess,
  },
];
const router = createRouter({
  history: routerHistory,
  routes,
});

export default router;
